home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / Vim 3.0.sit / vim / _exrc next >
Encoding:
Text File  |  1994-10-19  |  1.5 KB  |  4 lines  |  [TEXT/VIM!]

  1. " examples of .exrc settings that make Vim more useful for me.
  2. " use them if you want; skip them if you don't like them.
  3. "
  4. " set it so that return and minus move up and down a line without
  5. " insisting on moving to the start of the line.  yes, i'm one of
  6. " those old-fashioned people who like space, backspace, -, and return
  7. " better than hjkl.
  8. "
  9. map 
  10.  
  11. map - 
  12. "
  13. " do text wrapping on a control-Q.  since it annoys me to have text
  14. " wrap automatically, but I want it to wrap when I give the command,
  15. " the macro sets the textwidth, wraps the current paragraph, then
  16. " sets it back to text wrap being off.
  17. "
  18. map  :set textwidth=75
  19. {jQ}:set textwidth=0
  20.  
  21. "
  22. " make it so that we can backspace beyond the start of the insertion
  23. " and beyond the current line
  24. "
  25. set backspace=2
  26. "
  27. " set the default font and size to monaco-9.  it's already the
  28. " default, but this is supposed to be an illustration of how to
  29. " set it to something different.
  30. "
  31. set term=monaco
  32. set term=9
  33. "
  34. " similarly, set the window size to the standard size.  you can use
  35. " whatever numbers you like.
  36. "
  37. set lines=25
  38. set columns=80
  39. "
  40. " set the tabs and shifts to something a bit less wide
  41. " than the standard 8-characters
  42. "
  43. set tabstop=4
  44. set shiftwidth=4
  45. "
  46. " keep me from accidentally hitting = when I meant -
  47. " = doesn't do anything useful in the mac version anyway.
  48. "
  49. map = -
  50. "
  51. " allow screen refreshes even while inserting
  52. "
  53. map!    a
  54. "
  55. " make all the extended ASCII characters show up as themselves
  56. "
  57. set graphic
  58. "
  59. " get rid of the backup files.  this is the most controversial
  60. " of the lot...
  61. "
  62. set nobackup
  63.